<!--
 * @Author: firesky
 * @Date: 2020-10-08 15:44:31
 * @LastEditTime: 2020-12-22 14:23:26
 * @LastEditors: firesky
-->
<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
import { getToken } from './utils/auth'
export default {
  name: 'App',
  provide() {
    return {
      globalDb: this
    }
  },
  data() {
    return {
      db: '',
      fname: '',
      //  ztnamedb: '',
      menusList: []
    }
  },
  mounted() {
    // console.log(getToken(), 7878)

    if (getToken()) {
      const db = JSON.parse(getToken()).db
      const fname = JSON.parse(getToken())._is_auth
      this.db = db
      this.fname = fname
    }
    // console.log(this, ' 1 this.globalDb')
  }
}
</script>
<style scoped>
#app {
  min-width: 960px;
}
</style>
